package net.zjitc.yaobei_backed.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户学习进度实体
 * 对应数据库表：user_progress
 */
@Data
@TableName("user_progress")
public class UserProgress {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private Integer wordbookId;

    /**
     * 已学习单词数
     */
    private Integer learnedWords;

    /**
     * 词书总单词数
     */
    private Integer totalWords;

    /**
     * 最近学习时间
     */
    private LocalDateTime lastStudy;
}









